#######################################################################
## Configuration file for ASN-IPFire-Script v0.7.13 (asn_ipfire.sh)
#######################################################################

#######################################################################
## This configuration is optional. Without a configuration file, the 
## script will use the default values from the script header.
#######################################################################


## Use download tool wget or curl
#downloadtool=wget				# default
#downloadtool=curl				# alterantive (if existent)
#timeout=30					# timeout in seconds for availability check (-c|--check)

## Path to IPFire customnetworks|customgroups
#customnetworks=/var/ipfire/fwhosts/customnetworks
#customgroups=/var/ipfire/fwhosts/customgroups

## Remark for IPFire customnetworks|customgroups. This is used to identify entries made by asn_ipfire.sh.
#auto_remark="entry by asn_ipfire.sh"

## Define iptables path for iptable/afwall output file
#iptables_path="/sbin/iptables"
#afwall_path="/system/bin/iptables"
#nft_path="/usr/bin/nft"

## Define custom output format, special substitutions: %network%, %company%, %number%
#outputline="%network%"									# default
#outputline="$iptables_path -A OUTPUT -d %network% -j REJECT # %company% Nr.%number%"	# iptables example
#outputline="$afwall_path -A \"afwall\" -d %network% -j REJECT"				# afwall example
#outputline="$nft_path add rule ip filter OUTPUT ip daddr %network% counter reject"	# nftables example 

## Output file					
#output_file="asn_result.lst"			# output file in custom format

#temppath="."					# path to store temporary source file (default is the script folder ".")
#temp1="asn_cidrreport.tmp"			# Define temp file
#temp2="asn_bglooking.tmp"			# Define temp file

## Local files can be used as ASN and/or network sources. To be activated by enabling "gather_ASN0" and/or "gather_NET0" into following arrays.
#local_asn_file="local_asn.list"		# Line format: 'ASN Company' or vice versa (e.g. 'AS1234 CompanyA' or 'CompanyA AS1234')
#local_net_file="local_net.list"		# Line format: 'network ASN' or vice versa (e.g. '1.2.3.4/24 AS5678' or 'AS5678 1.2.3.4/24')

## Enable/disable ASN sources: Remove leading hashes (#) to enable ASN_sources. 
#getASNfromCOMPANY=( \
#  ASN_local \					# local source (local_asn_file)
#  ASN_cidrreport \				# cidr-report.org
## ASN_bgplookingglass \				# bgplookingglass.com
## ASN_bgpview \					# bgpview.io (white spaces in company names not supported)
###ASN_bgphenet \				# bgp.he.net (not supported due to js requirement)
#)

## Enable/disable network sources: Remove leading hash (#) to enable NET_sources. 
#getNETfromASN=( \
#  NET_local \					# local source (local_net_file)
#  NET_ripe \					# stat.ripe.net
## NET_ipinfo \					# ipinfo.io
## NET_bgpview \					# bgpview.io
## NET_radb \					# whois.radb.net	# use only if you know what you are doing. query results may be wrong!
#)										
